home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / size.z / size
Encoding:
Text File  |  2002-10-03  |  1.9 KB  |  46 lines

  1. SIZE(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      SSIIZZEE - Returns the total number of elements in an array
  6.  
  7. SSYYNNOOPPSSIISS
  8.      SSIIZZEE (([AARRRRAAYY==]_a_r_r_a_y [,,[DDIIMM==]_d_i_m]))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, IRIX systems
  12.  
  13.      CF90, MIPSpro 7 Fortran 90
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      Fortran
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      The SSIIZZEE intrinsic function returns the extent of an array along a
  20.      specified dimension or the total number of elements in the array.  It
  21.      accepts the following arguments:
  22.  
  23.      _a_r_r_a_y     May be of any type.  It must not be scalar.  It must not be
  24.                a pointer that is disassociated or an allocatable array that
  25.                is not allocated.  If _a_r_r_a_y is an assumed-size array, _d_i_m
  26.                must be present with a value less than the rank of _a_r_r_a_y.
  27.  
  28.      _d_i_m       Must be scalar and of type integer with a value in the range
  29.                1 <= _d_i_m <= _n, where _n is the rank of _a_r_r_a_y.
  30.  
  31.      SSIIZZEE is an inquiry function.  The name of this intrinsic cannot be
  32.      passed as an argument.
  33.  
  34. RREETTUURRNN VVAALLUUEESS
  35.      The result is a default integer scalar.  The result has a value equal
  36.      to the extent of dimension _d_i_m of _a_r_r_a_y or, if _d_i_m is absent, the
  37.      total number of elements of _a_r_r_a_y.
  38.  
  39. EEXXAAMMPPLLEESS
  40.      The value of SSIIZZEE((AA((22::55,, --11::11)),, DDIIMM==22)) is 3.  The value of SSIIZZEE((AA((22::55,,
  41.      --11::11)))) is 12.
  42.  
  43. SSEEEE AALLSSOO
  44.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  45.      man page.
  46.